#!/bin/bash
host="http://192.168.0.106:3000"
prefix="/user"
id=""
account="awoo"
token="123"

# curl -d "key=passwd" ${host}/api/sync
# curl -d "username=awoo&password=123" ${host}/user/signin
# curl -d "username=awoo&password=123" ${host}/user/signup
# curl -d "username=awoo&token=123" ${host}$/api/user/signout

# curl -d "keywords=" ${host}${prefix}/search
curl -d "account=${account}&token=${token}" ${host}${prefix}
# curl -d "title=haha&cover=base64&author=awoo" ${host}${prefix}/topic/add
# curl -d "topicId=59b8dd24528f340e3dd29d25" ${host}${prefix}/findById

# curl -d "id=${id}&account=${account}&token=${token}" ${host}${prefix}/findById
# curl -d "name=admin&account=${account}&token=${token}" ${host}${prefix}/findByName

# curl -d "phone=2345&name=admin&password=123&account=${account}&token=${token}" ${host}${prefix}/add
# curl -d "name=test&id=${id}&password=123&account=${account}&token=${token}" ${host}${prefix}/update
# curl -d "id=${id}&account=${account}&token=${token}" ${host}${prefix}/delete
# curl -d "id=${id}&account=${account}&token=${token}" ${host}${prefix}/phydel
# curl -d "id=${id}&account=${account}&token=${token}" ${host}${prefix}/disable
# curl -d "id=${id}&account=${account}&token=${token}" ${host}${prefix}/enable

# select role_, username_, password_, id_, createdat_, updatedat_, version_, status_ from t_user;
